export default class zidan extends Laya.Script {

    constructor() { 
        super(); 
        this.speed=-20;
        this.score=1;
        // 更多参数说明请访问: https://ldc2.layabox.com/doc/?nav=zh-as-2-4-0
    }
    onUpdate(){
        this.owner.y+=this.speed;
    }
    onTriggerExit(other){
        if(other.label=="Top"){
            this.owner.removeSelf();
        }
        if(other.label=="di"){
            this.owner.removeSelf();
            Laya.stage.event("AddScre",1);
        }
        if(other.label=="jing"){
            this.owner.removeSelf();
            Laya.stage.event("AddScre",10);
        }

        }
}